home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
windows
/
ldialogs.zip
/
TEST.DPR
< prev
next >
Wrap
Text File
|
1996-07-25
|
471b
|
30 lines
program Test;
uses
Forms,
WinTypes,
WinProcs,
LDialogs,
Mainform in 'MAINFORM.PAS' {Form1};
{$R *.RES}
var
PrevInstWnd: HWnd;
begin
if hPrevInst = 0 then
begin
Application.CreateForm(TForm1, Form1);
Application.Run;
end
else
begin
PrevInstWnd := GetWindowOnTop(hPrevInst);
if IsIconic(PrevInstWnd) then
ShowWindow(PrevInstWnd, CmdShow)
else
BringWindowToTop(PrevInstWnd);
end;
end.